/* 整体布局 */
.layout{
    width: 100%;
    /* 最大宽度 */
    max-width: 640px;
    /* 最小宽度 */
    min-width: 320px;
    margin: 0 auto;
    background-color: #eeeeee;
}
/* 顶部搜索 */
.search{
    width: 100%;
    max-width: 640px;
    height: 40px;
    /* 固定在顶部 */
    position: fixed;
    background: #e92322 !important;
    z-index: 999;
}
.logo{
    width: 56px;
    height: 30px;
    position: absolute;
    left: 10px;
    top: 5px;
    background: url("../img/jd-sprites.png");
    /* 确定背景大小 */
    background-size: 200px 200px;
    background-position: 0px -108px;
}
.searchBox{
    /* 宽度参照父容器，不能人为设置宽度 */
    width: 100%;
    height: 100%;
    padding-left: 76px;
    padding-right: 50px;
}
.searchBox input{
    width: 100%;
    height: 30px;
    margin-top: 5px;
    border-radius: 15px;
    padding-left: 30px;
    color: #666666;
}
/* 使用伪元素放大器 */
.searchBox::before{
    content: "";
    width: 27px;
    height: 23px;
    position: absolute;
    background: url("../img/jd-sprites.png");
    background-size: 200px 200px;
    background-position: -56px -108px;
    left: 80px;
    top: 9px;
}
.login{
    width: 40px;
    height: 40px;
    position: absolute;
    top: 0;
    right: 0;
    line-height: 40px;
    color: #ffffff;
}
/* 轮播图样式 */
.banner{
    width: 100%;
    overflow: hidden;
    position: relative;
}
.bannerImg{
    width: 800%;
    position: relative;
}
.bannerImg li{
    width: 12.5%;
    float: left;
}
.bannerImg li img{
    display: block;
    width: 100%;
}
.bannerIndicator{
    width: 128px;
    height: 10px;
    position: absolute;
    left: 50%;
    bottom: 5px;
    transform: translateX(-50%);
}
.bannerIndicator li{
    width: 6px;
    height: 6px;
    border-radius: 3px;
    border: 1px solid #ffffff;
    float: left;
    margin-left: 10px;
}
.bannerIndicator li:first-of-type{
    margin-left: 0;

}
.bannerIndicator li.active{
    background-color: #ffffff;
}
/* 导航块样式 */
.nav{
    width: 100%;
    padding:10px 0;
    background-color: #fff;
}
.nav li{
    width: 25%;
    float: left;
    text-align: center;
    margin-top:5px;
}
.nav li img{
    width: 50px;
}
.nav li p{
    line-height:25px;
}
/* 产品块样式 */
.product{
    width: 100%;
}
.productBox{
    width: 100%;
    margin-top: 10px;
    background-color: #ffffff;
    box-shadow: 1px 1px 1px #cccccc;
}
.productTip{
    width: 100%;
    height: 30px;
    line-height: 30px;
    border-bottom: 1px solid #cccccc;
    color: #666666;
    padding-left: 20px;
}
.productTip h3{
    position: relative;
}
.productTip h3::before{
    content: "";
    position: absolute;
    width: 3px;
    height: 12px;
    background-color: #e92322;
    left: -8px;
    top: 9px;
}
/* 产品块图片链接 */
.productContent a{
    width: 50%;
    display: block;
}
.productContent a img{
    width: 100%;
    display: block;
}
.b_left{
    border-left: 1px solid #cccccc;
}
.b_bottom{
    border-bottom: 1px solid #cccccc;
}
.b_right{
    border-right: 1px solid #cccccc;
}
/* 秒杀块 */
.ms .productTip{
    border-bottom: none;
    padding-left: 0;
}
.ms_icon{
    width: 16px;
    height: 20px;
    background: url("../img/seckill-icon.png");
    background-size: 16px 20px;
    margin-top:3px;
}
.ms_text{
    color: #e92322;
}
.ms_time span{
    width: 13px;
    height: 18px;
    display: inline-block;
    line-height: 18px;
    color: #fff;
    background-color: #000;
    text-align: center;
}
.ms_time span:nth-last-of-type(3n){
    color: #000000;
    background-color: transparent;
    width: 8px;
}
.ms .content{
    padding:20px;
}
.ms .content ul{
    width: 100%;
}
.ms .content ul li{
    width: 33.33%;
    float: left;
    text-align: center;
}
.ms .content ul li img{
    width: 60%;
    display: inline-block;
}
.base{
    width: 100%;
    height: 50px;
    max-width: 640px;
    bottom: 0;
    position: fixed;
    background: #fffeee !important;
}
.index{
    width: 25%;
    height: 50px;
    position: absolute;
    background: url("../img/index-icon.png");
    background-repeat:no-repeat;
    background-size: 57px 44px;
    background-position: 16px 1px;
}
.sort{
    width: 25%;
    height: 50px;
    left: 25%;
    position: absolute;
    background: url("../img/sort-icon.png");
    background-repeat:no-repeat;
    background-size: 57px 44px;
    background-position: 16px 1px;
}
.cart{
    width: 25%;
    height: 50px;
    left: 50%;
    position: absolute;
    background: url("../img/cart-icon.png");
    background-repeat:no-repeat;
    background-size: 57px 44px;
    background-position: 16px 1px;
}
.center{
    width: 25%;
    height: 50px;
    left: 75%;
    position: absolute;
    background: url("../img/center-icon.png");
    background-repeat:no-repeat;
    background-size: 57px 44px;
    background-position: 16px 1px;
}